﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using SharpDiary.Core.Common;
using SharpDiary.Core.Attributes;

namespace SharpDiary.Emotion
{
    [GuiModule("c57f2629-3e7d-422e-bc9a-4bf9118f193f", "EmotionEditer", "Ray Shaw(demogodyou@gmail.com)")]
    public partial class frmEmotionManager : GuiModuleUIBase
    {
        #region Constructors

        public frmEmotionManager()
        {
            InitializeComponent();
        }

        #endregion

        #region Methods

        public override string GetSettingsKeyName()
        {
            return this.Name;
        }

        private void btnNewEmotion_Click(object sender, EventArgs e)
        {
            OwnerShell.ExecuteAction("SharpDiary.Emotion", "35b41107-af01-4318-ae0e-8dbbe0cd5711", null, this);
        }

        private void frmEmotionManager_Shown(object sender, EventArgs e)
        {
            emotionListControl.ShowItems();
        }

        private void btnRefresh_Click(object sender, EventArgs e)
        {
            emotionListControl.ShowItems();
        }

        #endregion

        private void btnClose_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
